﻿
using System.Drawing;
namespace Minecraft_2D.Blocks
{
    class Leaves : Bloc
    {
        #region Attributs
        #endregion

        #region Constructeur
        public Leaves(int percent)
            : base("Leaves", Properties.Resources.Leaves, false, percent)
        {
        }
        #endregion

        #region Proprietes
        #endregion

        #region Methodes
        public override TypeBloc OnNew(Block bloc)
        {
            if (!bloc.Contient(2, TypeBloc.Wood).IsEmpty)
                return TypeBloc.Leaves;
            return bloc.Type;
        }
        #endregion
    }
}
